/*
 ============================================================================
 Name		: FEAppView.h
 Author	  : Gao QianXuan
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CFEAppDirView declaration
 ============================================================================
 */

#ifndef FEAPPDIRVIEW_H
#define FEAPPDIRVIEW_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <aknview.h>

#include "FEAppUi.h"

class CFEAppDirContainer;

// CLASS DECLARATION

/**
 *  CFEAppDirView
 * 
 */
class CFEAppDirView : public CAknView
{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CFEAppDirView();

	/**
	 * Two-phased constructor.
	 */
	static CFEAppDirView* NewL();

	/**
	 * Two-phased constructor.
	 */
	static CFEAppDirView* NewLC();

public:
	// Functions from base classes
	TUid Id() const;
	void HandleCommandL(TInt aCommand);
	void HandleClientRectChange();
	void SetPath(TFileName &aFileName);
	CAknViewAppUi *GetAppUi();

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CFEAppDirView();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();

	void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
			const TDesC8 & aCustomMessage);

	void DoDeactivate();

private:
	//data
	CFEAppDirContainer* iContainer;
	TFileName iFileName;
};

#endif // FEAPPVIEW_H
